Skip to content

Changed JoinRestrictionType to inherit from ExtensibleEnum#182

Closed
usbpc wants to merge 1 commit intomautrix:masterfrom
usbpc:patch-1
Closed

Changed JoinRestrictionType to inherit from ExtensibleEnum#182
usbpc wants to merge 1 commit intomautrix:masterfrom
usbpc:patch-1

Conversation

@usbpc
Copy link

@usbpc usbpc commented Mar 13, 2026

Fixes the crash I encountered while processing all events in the matrix #ping:maunium.net:

Traceback (most recent call last):
  File "/home/user/dev/ping_room_reader/.venv/lib/python3.14/site-packages/mautrix/types/util/serializable.py", line 101, in deserialize
    return cls(raw)
  File "/usr/lib/python3.14/enum.py", line 708, in __call__
    return cls.__new__(cls, value)
           ~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.14/enum.py", line 1193, in __new__
    raise ve_exc
ValueError: 'fi.mau.spam_checker' is not a valid JoinRestrictionType

@tulir tulir closed this in 2296ac7 Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant